
fragment TestEntitySearchAttributes on _E_TestEntity {
  id
  __typename
  stringField
  textField
  integerField
  bigDecimalField
  booleanField
  localDateField
  localDateTimeField
}

query searchTestEntity($searchStr: String) {
  searchTestEntity(
    cond: "it.stringField $like '%' + ${searchStr} + '%'"
    sort: { crit:"it.stringField" }
  ) @strExpr(string:$searchStr)  	
  {
    elems {
      ...TestEntitySearchAttributes
    }
  }
}

mutation createTestEntity($input: _CreateTestEntityInput!) {
  packet {
    createTestEntity(input: $input) {
      ...TestEntitySearchAttributes
    }
  }
}

mutation updateTestEntity($input: _UpdateTestEntityInput!) {
  packet {
    updateTestEntity(input: $input) {
      ...TestEntitySearchAttributes
    }
  }
}

mutation deleteTestEntity($id: ID!) {
  packet {
    deleteTestEntity(id: $id)
  }
}